package com.bupt.jack.model;

/**
 * Usergroupref entity. @author MyEclipse Persistence Tools
 */

public class UserGroupRef implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 395521597687404252L;
	private Long id;
	private Long userId;
	private Long groupId;
	private Integer type;

	// Constructors

	/** default constructor */
	public UserGroupRef() {
	}

	/** minimal constructor */
	public UserGroupRef(Long id) {
		this.id = id;
	}

	/** full constructor */
	public UserGroupRef(Long id, Long userId, Long groupId, Integer type) {
		this.id = id;
		this.userId = userId;
		this.groupId = groupId;
		this.type = type;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getGroupId() {
		return this.groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}